<template>
  <el-card shadow="never" class="searchCard">
    <el-text style="font-weight: bold;cursor: pointer"
             @click="router.push({ name: 'PostDetail', params: { id: String(post.id) }})"
             size="large">
      {{ post.title }}

    </el-text>
    <br>
    <br>
    <el-text>{{ post.desc }}qwdqwq</el-text>
    <br>
    <br>
    <el-space :size="35">
      <el-text>{{ post.authorId }}</el-text>
      <el-text>{{ Func.dateFormat(post.publishTime) }}</el-text>
      <el-text>50</el-text>
      <el-text>100</el-text>

    </el-space>
  </el-card>
  <el-divider/>
</template>

<script setup>
import Func from "../../../utils/Utils.js";
import router from "@/router/index.js";

defineProps({
  post: {
    type: Object,
  }
});

</script>
